<!DOCTYPE html>
<html lang="zh-cn">
  <head>
    <meta charset="utf-8">

    <!-- 使用chrome或本机最高版本IE内核 -->
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"/>
    <meta name="renderer" content="webkit"/>
    <meta name="force-rendering" content="webkit"/>

    <meta name="viewport" content="width=device-width,initial-scale=1.0">
    <link rel="icon" href="<%= BASE_URL %>favicon.ico">
    <title>专业技术人员业绩数据信息系统</title>

    <link rel="stylesheet" href="<%= BASE_URL %>static/iconfont/iconfont.css">

  </head>
  <body>
    <noscript>
      <strong>We're sorry but <%= htmlWebpackPlugin.options.title %> doesn't work properly without JavaScript enabled. Please enable it to continue.</strong>
    </noscript>
    <div id="app"></div>
    <!-- built files will be auto injected -->
  </body>
</html>

<script>

Date.prototype.format = function(fmt) { 
     var o = { 
        "M+" : this.getMonth()+1,                    // 月份
        "d+" : this.getDate(),                       // 日
        "h+" : this.getHours(),                      // 小时
        "m+" : this.getMinutes(),                    // 分
        "s+" : this.getSeconds(),                    // 秒
        "q+" : Math.floor((this.getMonth()+3)/3), // 季度
        "S"  : this.getMilliseconds()                // 毫秒
    }; 
    if(/(y+)/.test(fmt)) {
            fmt=fmt.replace(RegExp.$1, (this.getFullYear()+"").substr(4 - RegExp.$1.length)); 
    }
     for(var k in o) {
        if(new RegExp("("+ k +")").test(fmt)){
             fmt = fmt.replace(RegExp.$1, (RegExp.$1.length==1) ? (o[k]) : (("00"+ o[k]).substr((""+ o[k]).length)));
         }
     }
    return fmt; 
}

// 删除数组中元素
Array.prototype.remove = function(val) {
  var index = this.indexOf(val);
  if (index > -1) {
  this.splice(index, 1);
  }
};

// 判空：判断变量是否为空或0
function isEmpty(value){
   if(value === undefined){
      return true;
   }else if(value === null){
      return true;
   }else if(typeof value === "string" && value.trim() === ""){
      return true;
   }else if(typeof value === "number" && isNaN(value) === true){ 
      return true;
   }else if(typeof value === "number" && value === 0){
      return true;
   }
   return false;
}

</script>